﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MDF.DataHelper.BussinessObject;
using System.Data;
using MDF.DataHelper.DataObject;
using MDF.Utilites.Tools;
using MDF.DataHelper.BussinessObject.UsersBO;
using MDF.DataHelper.DataObject.UsersDO;

namespace MDF.DataHelper.BussinessLogic.UsersBL
{
    public class UserRolesBUS : BaseBussinessLogic
    {
        #region staticMember
        /// <summary>
        /// 
        /// </summary>
        private static UserRolesBUS _instance;
        /// <summary>
        /// 
        /// </summary>
        public static UserRolesBUS Current
        {
            get { return _instance == null ? _instance = new UserRolesBUS() : _instance; }
        }
        #endregion

        public List<UserRoles> GetAll()
        {
            DataTable dt = new DataTable();
            UserRolesDAO objResaleDAO = new UserRolesDAO(this.m_objData);
            dt = objResaleDAO.GetAll();
            var lstTemp = dt.ToList<UserRoles>();
            return lstTemp;
        }
    }
}
